package model

import "ginfast/pkg/dao"

// SysConfigOpt 操作请求(获取/修改/更新)
type SysConfigOpt struct {
	ID      uint   `json:"configId" gorm:"primary_key"`
	Name    string `json:"configName" gorm:"comment:参数名称;"`
	Keyword string `json:"configKey" gorm:"comment:参数键名;"`
	Value   string `json:"configValue" gorm:"comment:参数键值;"`
	Type    string `json:"configType" gorm:"comment:1=是,0=否;"`
}

// SysConfig 参数
type SysConfig struct {
	SysConfigOpt
	dao.ModelTime
}

func (o *SysConfig) TableName() string {
	return "t_sysconfig"
}
